package com.wangjialu.learner.consumer.service;

import org.springframework.stereotype.Component;

/**
 * <p>为PaymentHystrixService提供fallback方法</p>
 *
 * @author WangJialu
 * @since 2021/6/23 20:42
 */
@Component
public class PaymentFallbackService implements PaymentHystrixService {
    @Override
    public String paymentInfo_OK(Integer id) {
        return "*********fallback: PaymentFallbackService paymentInfo_OK********";
    }

    @Override
    public String paymentInfo_TimeOut(Integer id) {
        return "*********fallback: PaymentFallbackService paymentInfo_TimeOut********";
    }

    @Override
    public String paymentInfo_Error(Integer id) {
        return "*********fallback: PaymentFallbackService paymentInfo_Error********";
    }

    @Override
    public String paymentInfo_Error2(Integer id) {
        return "*********fallback: PaymentFallbackService paymentInfo_Error2********";
    }
}
